/**
 * Created by congzhang on 17/11/7.
 */

var express = require("express");
var app = express();

app.use(express.static(__dirname)); // 设置静态文件目录


app.set("view engine", 'ejs');  // 设置模板引擎
app.set("views", __dirname);    // 指定模板目录


app.get("/", function (req, res) {

    res.render("index", {
        "title": "标题"
    })

});

app.listen(8080, "0.0.0.0");